package yogiro.to;

public class ProductDateTO {
		private int productDateNo;
		private String productDate;
		private int productNo;
		
		public ProductDateTO(){}

		public ProductDateTO(int productDateNo, String productDate,
				int productNo) {
			super();
			this.productDateNo = productDateNo;
			this.productDate = productDate;
			this.productNo = productNo;
		}

		public int getProductDateNo() {
			return productDateNo;
		}

		public void setProductDateNo(int productDateNo) {
			this.productDateNo = productDateNo;
		}

		public String getProductDate() {
			return productDate;
		}

		public void setProductDate(String productDate) {
			this.productDate = productDate;
		}

		public int getProductNo() {
			return productNo;
		}

		public void setProductNo(int productNo) {
			this.productNo = productNo;
		}

		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result
					+ ((productDate == null) ? 0 : productDate.hashCode());
			result = prime * result + productDateNo;
			result = prime * result + productNo;
			return result;
		}

		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			ProductDateTO other = (ProductDateTO) obj;
			if (productDate == null) {
				if (other.productDate != null)
					return false;
			} else if (!productDate.equals(other.productDate))
				return false;
			if (productDateNo != other.productDateNo)
				return false;
			if (productNo != other.productNo)
				return false;
			return true;
		}

		@Override
		public String toString() {
			return "ProductDateTO [productDateNo=" + productDateNo
					+ ", productDate=" + productDate + ", productNo="
					+ productNo + "]";
		}

	
		}
